package com.gy.smartmanagement.process.processdevice.adapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.gy.smartmanagement.R;

import java.util.List;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

public class ProfileAdapter extends RecyclerView.Adapter<ProfileAdapter.ViewHolder> {
  private Context context;
  private List<String> dataList;

  public ProfileAdapter(Context context, List<String> dataList) {
    this.context = context;
    this.dataList = dataList;
  }

  @NonNull
  @Override
  public ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
    View view= LayoutInflater.from(context).inflate(R.layout.item_profile,null);
    return new ViewHolder(view);
  }

  @Override
  public void onBindViewHolder(@NonNull ViewHolder holder, int position) {

  }

  @Override
  public int getItemCount() {
    return dataList.size();
  }

  class ViewHolder extends RecyclerView.ViewHolder{
    private ImageView iv;
    public    ViewHolder(@NonNull View itemView) {
      super(itemView);
      iv=itemView.findViewById(R.id.profile_iv);
    }
  }

}
